class Person {
  constructor(name) {
    this.name = name
  }

  say() {
    console.log(`hi, my name is ${this.name}`)
  }
  // this不会指向某个实例对象而是当前的类型
  static create(name) {
    console.log(this);
    return new Person(name)
  }
}
const tom = Person.create('tom')
console.log(tom);
// Person { name: 'tom' }
tom.say()
